package com.tianji.api.client.remark;

import com.tianji.api.client.learning.fallback.LearningClientFallback;
import com.tianji.api.client.remark.fallback.RemarkClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

@FeignClient(value = "remark-service",fallbackFactory = RemarkClientFallback.class)
public interface RemarkClient {

    /**
     * 02 根据业务id集合查询点赞状态（day06-随堂-02）
     * 查询当前用户是否已经点赞
     *
     * @param bizIds
     * @return
     */

    @GetMapping("/likes/list")
    public Set<Long> isLiked(@RequestParam("bizIds") Iterable<Long> bizIds);
}
